﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="FindProject.aspx.cs" Inherits="FindProjekt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:Panel runat="server" DefaultButton="btnSearch">

        
    <div class="searchfield" > <!--Search field-->
        <span class="arrow">
        <asp:Textbox placeholder="Søg: Title, Virksomhed" results="0" runat="server" CssClass="searchtxtfield" ID="txtSearch"/>
        <asp:ImageButton runat="server" ID="btnSearch" ImageUrl="~/Images/Magnifying.png" CssClass="buttonsearch" OnClick="btnSearch_Click"/>
            </span> 
    </div>    

        </asp:Panel>
    <asp:MultiView ID="mvFind" ActiveViewIndex="0" runat="server">
        <asp:View ID="vCompany" runat="server">

   <div class="indexWrapper"> <!--wrap around-->
            <asp:CheckBoxList ID="cblDivisions" RepeatDirection="Horizontal" AutoPostBack="true" OnSelectedIndexChanged="cblDivisions_SelectedIndexChanged" runat="server">
                <asp:ListItem Text="Business" Value="2" Selected="True" />
                <asp:ListItem Text="Pædagogik" Value="6" Selected="True" />
                <asp:ListItem Text="Sundhed" Value="4" Selected="True" />
                <asp:ListItem Text="Teknologi" Value="3" Selected="True" />
            </asp:CheckBoxList>

       
        
                        
        <asp:Repeater ID="rpContent" OnItemCommand="rpContent_ItemCommand" ClientIDMode="AutoID" runat="server">
            <HeaderTemplate>
                <div id="repeaterHeaderWrapper" runat="server" > <!--header-->
            <div class="col-division"> <!--header division-->
                <asp:Label ID="lblHeaderDivision" Text="Afdeling" runat="server"  />
            </div>
                    <div class="col-titel">
                        <asp:Label ID="lblHeaderTitel" Text="Titel" runat="server" />
                    </div>

            <div class="col-company"> <!--header company-->
                <asp:Label ID="lblHeaderCompany" Text="Virksomhed" runat="server" />
            </div>
                    
            <div id="colonHRequirement" runat="server" class="col-requirement"> <!--header Requirement-->
                <asp:Label ID="lblHeaderRequirements" Text="Krav" runat="server" />
            </div>

            <div class="col-period"> <!--header period-->
                <asp:Label ID="lblHeaderPeriod" Text="Periode" runat="server" />
            </div>
                    <div id="colonHBlank" runat="server" class="col-blank"></div> <!--header blank-->
        <div class="clear"></div>
        </div>
            </HeaderTemplate>
            <ItemTemplate> 
                <%--<asp:HiddenField ID="hfProjectID" runat="server" Value='<%#Eval("ID") %>' />--%>
                <div id="repeaterContentWrapper" runat="server" ><!--content-->

                    <div class="col-division" style="background-color:#fafafa"> <!--content division-->
                        <asp:Label ID="lblDivision" Text='<%#Eval("DivisionId") %>' runat="server" style="padding-left:18px;" />
                    </div>
                    <div class="col-titel" style="background-color:#fafafa">
                        <asp:LinkButton ID="lbtnTitel" Text='<%#Eval("Title") %>' CommandArgument='<%#Eval("ID") %>' runat="server" ForeColor="Black" OnClick="lbtnTitel_Click" style="padding-left:18px;"/>
                    </div>

                    <div class="col-company" style="background-color:#fafafa"> <!--content company-->
                        <asp:Label ID="lblCompanyName" Text='<%#Eval("CompanyName") %>' runat="server" style="padding-left:18px;"/>
                    </div>
                    
                    <div id="colonRequirement" runat="server" class="col-requirement" style="background-color:#fafafa"> <!--content Requirement-->
                        <asp:Label Text='<%#Eval("Requirements") %>' runat="server" style="padding-left:18px;"/>
                    </div>

                    <div class="col-period" style="background-color:#fafafa"> <!--content period-->
                        <asp:Label Text="Start: " runat="server" /><asp:Label Text='<%#string.Format("{0:dd MMM yyyy}", Eval("StartPeriod")) %>' runat="server" /><br />
                        <asp:Label Text="Slut: " runat="server" /><asp:Label Text='<%#string.Format("{0:dd MMM yyyy}", Eval("EndPeriod")) %>' runat="server" />
                    </div>
                    
                    <div id="colonBlank" runat="server" class="col-blank"></div> <!--content blank-->
                </div>
            </ItemTemplate>
            <AlternatingItemTemplate>
                <div id="repeaterContentWrapper" runat="server"><!--content-->

                    <div class="col-division"> <!--content division-->
                        <asp:Label ID="lblDivision" Text='<%#Eval("DivisionId") %>' runat="server" style="padding-left:18px;"/>
                    </div>
                    <div class="col-titel">
                        <asp:LinkButton ID="lbtnTitel" Text='<%#Eval("Title") %>' CommandArgument='<%#Eval("ID") %>' runat="server" ForeColor="Black" OnClick="lbtnTitel_Click" style="padding-left:18px;"/>
                    </div>

                    <div class="col-company"> <!--content company-->
                        <asp:Label ID="lblCompanyName" Text='<%#Eval("CompanyName") %>' runat="server" style="padding-left:18px;"/>
                    </div>

                    <div id="colonRequirement" runat="server" class="col-requirement"> <!--content Requirement-->
                        <asp:Label Text='<%#Eval("Requirements") %>' runat="server" style="padding-left:18px;"/>
                    </div>

                    <div class="col-period"> <!--content period-->
                        <asp:Label Text="Start: " runat="server" /><asp:Label ID="Label9" Text='<%#string.Format("{0:dd MMM yyyy}", Eval("StartPeriod")) %>' runat="server" /><br />
                        <asp:Label Text="Slut: " runat="server" /><asp:Label ID="Label11" Text='<%#string.Format("{0:dd MMM yyyy}", Eval("EndPeriod")) %>' runat="server" />
                    </div>
                    
                    <div id="colonBlank" runat="server" class="col-blank"></div> <!--content blank-->
                </div>
            </AlternatingItemTemplate>
        </asp:Repeater>
       <div class="clear"></div>

            <div class="FindProjectPageShift">
                <asp:LinkButton ID="lbtnPrev" Text="Tidligere" runat="server" OnClick="lbtnPrev_Click" CssClass="FindProjectPreviousbtn" />
                <asp:Label runat="server" ID="lblCurrentPage"/>
                <asp:LinkButton Text="Næste" ID="lbtnNext" OnClick="lbtnNext_Click" runat="server" CssClass="FindProjectNextbtn" />
            </div>
       </div>
            <div id="findProjectWrapper">
                <asp:Label Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim commodo consequat.<br/><br />Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim commodo.<br /><br />Info om hvad der er på siden og hvordan man kan bruge den." runat="server" />
            <br />  <br />
            <asp:Button runat="server" ID="btnBackward" OnClick="btnBackward_Click" CssClass="buttonOff" Text="Tilbage" />
            </div>
            
        </asp:View>
    </asp:MultiView>

</asp:Content>
